package com.yicong.ants.utils;

import android.widget.EditText;

import com.cchao.simplelib.core.UiHelper;
import com.cchao.simplelib.util.StringHelper;

/**
 * @author cchao
 * @version 2019-11-07.
 */
public class ViewHelper {
    public static boolean checkInputFail(EditText editText, String toast) {
        if (StringHelper.isEmpty(editText)) {
            UiHelper.showToast(toast);
            return true;
        }
        return false;
    }
}
